plc components and their functions